All Questions
6 questions
6votes
3answers
469views
zmv: Replace double-quote (") in filename
Using zmv on macOS, I'd like to replace double-quotes (") in filenames with underscores (_). However, I'm having trouble getting the zshexpn to correctly isolate the ". Is there some magical ...
0votes
1answer
44views
What is The Best Approach to Duplicate File into Different Filename and Modify The Content in Unix?
I've been doing research for Unix Script these past 2 days. Since I never touch Unix script before and suddenly I need to create Unix script to support my program. Basically I would like to seek an ...
8votes
4answers
1kviews
Rename multiple files with 2 conditions/replacements in one line?
I'm trying to rename a few images: IMG_1.JPG IMG_2.JPG IMG_3.JPG I want to replace IMG with img and .JPG with .jpg - I know how to do the second part: $ rename 's/\.JPG$/\.jpg/' *.JPG My problem is ...
2votes
3answers
554views
Replace a dynamic file extension with a fixed file extension
I need to replace dynamic file extensions which contain timestamp for certain date with a fixed file extension. For example, 08242016G0040156.ZIP.20160907141452 09042016SHOC0003.ZIP....
1vote
1answer
692views
Find and Replace of All Names
Background I am new to linux/unix (I'm on a mac. Don't know which I am using), but someone made a lot of folders and files under the wrong name, and I need to go in and replace everything with the ...
0votes
1answer
588views
defining rename command scope; replace word; replace entire file name; wildcards
Im looking to use the rename command to edit file names. More specifically, Im trying to isolate specific pieces to change, or in some cases, the whole name. For example: Lets say I have three ...